// 选择工厂
{
  "filterable": "",
    "showColumn": true,
      "multiple": false,
        "index": 99,
          "label": "工厂代码",
            "type": "select",
              "dicUrl": "/wms/plantmanagement/getPlantList",
                "props": {
    "label": "fctCode",
      "value": "fctCode"
  },
  "cascader": [
    "warehouseCode"
  ],
    "search": true,
      "prop": "fctCode",
        "width": 120,
          "labelKey": "wms.zwarehouse.zwarehouse.list_fctCode",
            "searchOrder": "9"
},
// 选择仓库
{
  "filterable": "",
    "showColumn": true,
      "multiple": false,
        "index": 99,
          "label": "仓库编号",
            "type": "select",
              "dicUrl": "/wms/warehouse/getWarehouseCodeList",
                "props": {
    "label": "warehouseCode",
      "value": "warehouseCode"
  },
  "dicQuery": {
    "fctCode": "{{fctCode}}"
  },
  "cascader": [
    "zwarehouseCode"
  ],
    "search": true,

      "prop": "warehouseCode",
        "width": 120,
          "labelKey": "wms.zwarehouse.zwarehouse.list_warehouseCode",
            "searchOrder": "5"
},
// 选择子库
{
  "search": true,
    "showColumn": true,
      "dicQuery": {
    "fctCode": "{{fctCode}}",
      "warehouseCode": "{{warehouseCode}}"
  },
  "prop": "zwarehouseCode",
    "width": 120,
      "index": 99,
        "dicUrl": "/wms/zwarehouse/getZwarehouseList",
          "label": "子库编号",
            "type": "select",
              "labelKey": "wms.zwarehouse.zwarehouse.list_zwarehouseCode",
                "props": {
    "label": "zwarehouseCode",
      "value": "zwarehouseCode"
  },
  "cascader": [
    "zoneCode"
  ],
    "searchOrder": "3"
},
// 选择库区
{
  "filterable": true,
    "showColumn": true,
      "multiple": false,
        "index": 99,
          "label": "库区编号",
            "dicUrl": "/wms/zone/getZoneList",
              "type": "select",
                "props": {
    "label": "zoneCode",
      "value": "zoneCode"
  },
  "cascader": [
    "locationCode"
  ],
    "search": true,
      "dicQuery": {
    "zwarehouseCode": "{{zwarehouseCode}}",
      "fctCode": "{{factoryCode}}"
  },
  "prop": "zoneCode",
    "width": 120,
      "labelKey": "wms.zone.zone.list_zoneCode",
        "searchOrder": "5"
},
// 库位选择
{
  "filterable": true,
    "showColumn": true,
      "multiple": false,
        "index": 99,
          "dicUrl": "/wms/location/getLocationList",
            "label": "库位编号",
              "type": "select",
                "props": {
    "label": "locationCode",
      "value": "locationCode"
  },
  "search": true,
    "dicQuery": {
    "zwarehouseCode": "{{zwarehouseCode}}",
      "fctCode": "{{factoryCode}}",
        "zoneCode": "{{zoneCode}}"
  },
  "prop": "locationCode",
    "width": 120,
      "labelKey": "wms.location.location.list_locationCode",
        "searchOrder": "3"
},



{
  "dicUrl": "/wms/customer/list",
    "type": "select",
      "props": {
    "label": "customerCd",
      "value": "customerCd"
  }
}


{
  "prop": "company",
    "label": "单位",
      "type": "input"
},

/wms/zwarehouse / list

{
  queryKey: { "s_zwarehouse_code": "zwarehouseCode", "n_store_type": "stockType" },
  required: true,
    query: { "n_status": 0, "n_attribute": 3 },
  selectData: function({ form, data, row, view }) {
    if (data) {
      const d = JSON.parse(JSON.stringify(data));
      console.info("d---------------", d)
      console.info("start---------------", form)
      row.zoneName = d.zoneName;
      row.locationId = d.id;
      row.locationCode = d.locationCode;
      row.locationName = d.locationName;
      console.info("end---------------", row)
    }
  }
}



"searchGutter": 7,
  "searchType": "daterange",
    "showColumn": true,
      "searchFormat": "YYYY-MM-DD",

        "dicUrl": "/wms/location/getLocationList",
          "label": "库位编号",

            "label": "库区编号",
              "dicUrl": "/wms/zone/getZoneList",

                "dicUrl": "/wms/zwarehouse/list",
                  "label": "子库编号",

                    "label": "工厂代码",
                      "dicUrl": "/wms/plantmanagement/getPlantList",

                        "dicUrl": "/wms/warehouse/getWarehouseCodeList",
                          "label": "仓库编号",

                          {
                            "dicUrl": "/wms/location/getLocationList",
                            "dicQuery": {
                              "zwarehouseCode": "{{inZwarehouseCode}}",
                            },
                            "props": {
                              "label": "locationCode",
                              "value": "locationCode"
                            },
                          }

{
  required: true,
    viewKey: "1868060288616030210",


      query: { zwarehouseCode: "V814" },

  selectData: function({ form, data, view }) {
    if (data) {
      const d = JSON.parse(JSON.stringify(data));
      form.factoryCode = d.factoryCode;
      form.factoryName = d.factoryName;
      form.warehouseCode = d.warehouseCode;
      form.warehouseName = d.warehouseName;
      form.zwarehouseCode = d.zwarehouseCode;
      form.zwarehouseName = d.zwarehouseName;
      form.locationId = d.locationId;
      form.locationCode = d.locationCode;
      form.locationName = d.location;
      form.zoneCode = d.zoneCode;
    }
  }
}


{
  "cprops": "{queryKey: {\"zwarehouseCode\": \"zwarehouseCode\"},\n  query:{\"status\": 0,\"attribute\":3},\n  selectData: function({form, data,row, view}){\n    if (data) {\n      const d = JSON.parse(JSON.stringify(data));\n      console.info(\"d---------------\",d)\n\t  console.info(\"start---------------\",form)\n   row.zoneName = d.zoneName;\n\t\t  row.locationId = d.id;\n\t\t  row.locationCode = d.locationCode;\n\t\t  row.locationName = d.locationName;\n\tconsole.info(\"end---------------\",row)\n    }\n  }\n}",
    "_index": "",
      "label": "翻包台",
        "cell": true,
          "type": "jc-selectdata",
            "props": {
    "label": "locationCode",
      "text": "locationCode",
        "value": "id"
  },
  "component": "jc-selectdata",
    "viewId": "1864278655093997569",
      "prop": "location",
        "width": "120",
          "value": "",
            "span": 120,
              "order": 99
},



{
  required: true,

    queryKey: { zwarehouseCode: "outZwarehouseCode" },

  selectData: function({ form, data, view, row }) {
    console.info("form", form)
    console.info("row", row)
    console.info("data", data)
    if (data) {
      const d = JSON.parse(JSON.stringify(data));

      form.locationCode = d.locationCode;
    }
  }
}